﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Rapid
{
    class ResultDrugLevel
    {
        public static int GetLevel(ETest test)
        {
            switch (test)
            {
                case ETest.AMP: return 1000;
                case ETest.BAR: return 300;

                case ETest.BZO: return 300;
                case ETest.COC: return 300;

                case ETest.MDMA: return 500;
                case ETest.MET: return 1000;

                case ETest.MTD: return 300;
                case ETest.OPI: return 2000;

                case ETest.OXY: return 100;
                case ETest.PCP: return 25;

                case ETest.TCA: return 1000;
                default: return 50;
            }
        }

        public static string GetDrugLevel(ETest test, EObservation observation)
        {
            var level = GetLevel(test);

            switch (observation)
            {
                case EObservation.Line: return "Less than " + level + " ng/ml";
                case EObservation.NoLine: return "Greater than " + level + " ng/ml";
                default: return "Unclear (" + level + " ng/ml cutoff)";
            }
        }

        public static string GetCommonDrugLevel()
        {
            return "--------";
        }

    }
}
